/**
 * 
 */
package com.thinkgsp.jxc.model;

import java.io.Serializable;

import org.apache.commons.lang.builder.ToStringBuilder;
import org.apache.commons.lang.builder.ToStringStyle;

/**
 * 产品生产企业
 * @author evan
 *
 */
public class ProductManuf extends BaseModel implements Serializable {

	private static final long serialVersionUID = 7597323903626877892L;

	/**
	 * 生产企业ID
	 */
	private Integer manufId;
	/**
	 * 生产企业许可证号
	 */
	private String manufCode;
	/**
	 * 生产企业名称
	 */
	private String manufName;
	
	/**
	 * 生产企业ID
	 * @return
	 */
	public Integer getManufId() {
		return manufId;
	}

	public void setManufId(Integer manufId) {
		this.manufId = manufId;
	}

	/**
	 * 生产企业许可证号
	 * @return
	 */
	public String getManufCode() {
		return manufCode;
	}

	public void setManufCode(String manufCode) {
		this.manufCode = manufCode;
	}

	/**
	 * 生产企业名称
	 * @return
	 */
	public String getManufName() {
		return manufName;
	}

	public void setManufName(String manufName) {
		this.manufName = manufName;
	}

	/* (non-Javadoc)
	 * @see com.thinkgsp.jxc.model.BaseModel#toString()
	 */
	@Override
	public String toString() {
		ToStringBuilder sb = new ToStringBuilder(this, ToStringStyle.DEFAULT_STYLE);
		sb.append("manufId",this.manufId)
		  .append("manufCode",this.manufCode)
		  .append("manufName",this.manufName);
		
		return sb.toString();
	}

	/* (non-Javadoc)
	 * @see com.thinkgsp.jxc.model.BaseModel#equals(java.lang.Object)
	 */
	@Override
	public boolean equals(Object o) {
		if(this == o) {
			return true;
		}
		if(!(o instanceof ProductManuf)) {
			return false;
		}
		final ProductManuf pm = (ProductManuf)o;
		if(manufId != null) {
			return manufId.equals(pm.getManufId());
		} else {
			return pm.getManufId() == null;
		}
	}

	/* (non-Javadoc)
	 * @see com.thinkgsp.jxc.model.BaseModel#hashCode()
	 */
	@Override
	public int hashCode() {
		return (this.manufId != null ? this.manufId.hashCode() : 0);
	}

}
